import request from '../utils/request';

/* 登录接口 */
export let login=(user_name:string,user_pwd:string)=>{
    return request.post('/user/login',{user_name,user_pwd});
}

 /* 获取用户信息 */
export let getUserInfo = ()=>{
    return request.get('/user/userInfo');
}

/* 更新用户信息（用户、密码、身份） */
export let updateUserInfo=(params:any)=>{
    return request.put('/user/user',params); 
}